package com.zhala.common.core.domain.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 用户登录对象
 * 
 * @author ruoyi
 */
@Data
public class LoginPhone {
    /**
     * 用户名
     */
    @Schema(description = "手机号码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1234555")
    @NotBlank(message = "手机号码不能为空")
    private String phoneNum;

    /**
     * 用户密码
     */
    @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "1234555")
    @NotBlank(message = "密码不能为空")
    private String password;

}
